package com.itheima.test2;
/*
请定义一个描述矩形（MyRectangle）的类，包含宽和高两个属性，
提供获取矩形周长（perimeter）和面积（area）的方法。并编写测试类进行测试。
 */
public class Student {

    private String name;
    private int age;
    public Student() {
    }
    public Student(String name, int age) {
        this.name = name;

        this.age = age;
    }
    public String getName() {

        return name;
    }
    public void setName(String name) {

        this.name = name;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {

        this.age = age;
    }
    public void show(){

        System.out.println("name = " + name);

        System.out.println("age = " + age);

    }
}
class Test {

    public static void main(String[] args) {

        Student stu1 = new Student();

        stu1.setName("张三");

        stu1.setAge(23);

        stu1.show();
        Student stu2 = new Student("李四", 34);

        stu2.show();

    }
}
